﻿@model Leikjavefurinn.Models.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}

    @Html.ActionLink("Til baka", "Index", "Home", null, new { data_icon = "arrow-l", data_rel = "back" })
    <h1>Breyta lykilorði</h1>

<p>
    Lykilorðið þarf að vera a.m.k @Membership.MinRequiredPasswordLength stafir.
</p>

@using (Html.BeginForm()) {
    @Html.ValidationSummary()

    <ul data-role="listview" data-inset="true">
        <!--<li data-role="list-divider">Account information</li>-->

        <li data-role="fieldcontain">
            <!--@Html.LabelFor(m => m.OldPassword)-->
            <p>Eldra lykilorðið</p>
            @Html.PasswordFor(m => m.OldPassword)            
        </li>

        <li data-role="fieldcontain">
            <!--@Html.LabelFor(m => m.NewPassword)-->
            <p>Nýtt lykilorðið</p>
            @Html.PasswordFor(m => m.NewPassword)            
        </li>

        <li data-role="fieldcontain">
            <!--@Html.LabelFor(m => m.ConfirmPassword)-->
            <p>Staðfestu nýja lykilorðið</p>
            @Html.PasswordFor(m => m.ConfirmPassword)            
        </li>

        <li data-role="fieldcontain">
            <input type="submit" value="Breyta lykilorði" />
        </li>
    </ul>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}